package com.meiyou.pojo;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class MeiyouDongtaiExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public MeiyouDongtaiExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andTIdIsNull() {
            addCriterion("t_id is null");
            return (Criteria) this;
        }

        public Criteria andTIdIsNotNull() {
            addCriterion("t_id is not null");
            return (Criteria) this;
        }

        public Criteria andTIdEqualTo(String value) {
            addCriterion("t_id =", value, "tId");
            return (Criteria) this;
        }

        public Criteria andTIdNotEqualTo(String value) {
            addCriterion("t_id <>", value, "tId");
            return (Criteria) this;
        }

        public Criteria andTIdGreaterThan(String value) {
            addCriterion("t_id >", value, "tId");
            return (Criteria) this;
        }

        public Criteria andTIdGreaterThanOrEqualTo(String value) {
            addCriterion("t_id >=", value, "tId");
            return (Criteria) this;
        }

        public Criteria andTIdLessThan(String value) {
            addCriterion("t_id <", value, "tId");
            return (Criteria) this;
        }

        public Criteria andTIdLessThanOrEqualTo(String value) {
            addCriterion("t_id <=", value, "tId");
            return (Criteria) this;
        }

        public Criteria andTIdLike(String value) {
            addCriterion("t_id like", value, "tId");
            return (Criteria) this;
        }

        public Criteria andTIdNotLike(String value) {
            addCriterion("t_id not like", value, "tId");
            return (Criteria) this;
        }

        public Criteria andTIdIn(List<String> values) {
            addCriterion("t_id in", values, "tId");
            return (Criteria) this;
        }

        public Criteria andTIdNotIn(List<String> values) {
            addCriterion("t_id not in", values, "tId");
            return (Criteria) this;
        }

        public Criteria andTIdBetween(String value1, String value2) {
            addCriterion("t_id between", value1, value2, "tId");
            return (Criteria) this;
        }

        public Criteria andTIdNotBetween(String value1, String value2) {
            addCriterion("t_id not between", value1, value2, "tId");
            return (Criteria) this;
        }

        public Criteria andTUcountIsNull() {
            addCriterion("t_ucount is null");
            return (Criteria) this;
        }

        public Criteria andTUcountIsNotNull() {
            addCriterion("t_ucount is not null");
            return (Criteria) this;
        }

        public Criteria andTUcountEqualTo(String value) {
            addCriterion("t_ucount =", value, "tUcount");
            return (Criteria) this;
        }

        public Criteria andTUcountNotEqualTo(String value) {
            addCriterion("t_ucount <>", value, "tUcount");
            return (Criteria) this;
        }

        public Criteria andTUcountGreaterThan(String value) {
            addCriterion("t_ucount >", value, "tUcount");
            return (Criteria) this;
        }

        public Criteria andTUcountGreaterThanOrEqualTo(String value) {
            addCriterion("t_ucount >=", value, "tUcount");
            return (Criteria) this;
        }

        public Criteria andTUcountLessThan(String value) {
            addCriterion("t_ucount <", value, "tUcount");
            return (Criteria) this;
        }

        public Criteria andTUcountLessThanOrEqualTo(String value) {
            addCriterion("t_ucount <=", value, "tUcount");
            return (Criteria) this;
        }

        public Criteria andTUcountLike(String value) {
            addCriterion("t_ucount like", value, "tUcount");
            return (Criteria) this;
        }

        public Criteria andTUcountNotLike(String value) {
            addCriterion("t_ucount not like", value, "tUcount");
            return (Criteria) this;
        }

        public Criteria andTUcountIn(List<String> values) {
            addCriterion("t_ucount in", values, "tUcount");
            return (Criteria) this;
        }

        public Criteria andTUcountNotIn(List<String> values) {
            addCriterion("t_ucount not in", values, "tUcount");
            return (Criteria) this;
        }

        public Criteria andTUcountBetween(String value1, String value2) {
            addCriterion("t_ucount between", value1, value2, "tUcount");
            return (Criteria) this;
        }

        public Criteria andTUcountNotBetween(String value1, String value2) {
            addCriterion("t_ucount not between", value1, value2, "tUcount");
            return (Criteria) this;
        }

        public Criteria andTContextIsNull() {
            addCriterion("t_context is null");
            return (Criteria) this;
        }

        public Criteria andTContextIsNotNull() {
            addCriterion("t_context is not null");
            return (Criteria) this;
        }

        public Criteria andTContextEqualTo(String value) {
            addCriterion("t_context =", value, "tContext");
            return (Criteria) this;
        }

        public Criteria andTContextNotEqualTo(String value) {
            addCriterion("t_context <>", value, "tContext");
            return (Criteria) this;
        }

        public Criteria andTContextGreaterThan(String value) {
            addCriterion("t_context >", value, "tContext");
            return (Criteria) this;
        }

        public Criteria andTContextGreaterThanOrEqualTo(String value) {
            addCriterion("t_context >=", value, "tContext");
            return (Criteria) this;
        }

        public Criteria andTContextLessThan(String value) {
            addCriterion("t_context <", value, "tContext");
            return (Criteria) this;
        }

        public Criteria andTContextLessThanOrEqualTo(String value) {
            addCriterion("t_context <=", value, "tContext");
            return (Criteria) this;
        }

        public Criteria andTContextLike(String value) {
            addCriterion("t_context like", value, "tContext");
            return (Criteria) this;
        }

        public Criteria andTContextNotLike(String value) {
            addCriterion("t_context not like", value, "tContext");
            return (Criteria) this;
        }

        public Criteria andTContextIn(List<String> values) {
            addCriterion("t_context in", values, "tContext");
            return (Criteria) this;
        }

        public Criteria andTContextNotIn(List<String> values) {
            addCriterion("t_context not in", values, "tContext");
            return (Criteria) this;
        }

        public Criteria andTContextBetween(String value1, String value2) {
            addCriterion("t_context between", value1, value2, "tContext");
            return (Criteria) this;
        }

        public Criteria andTContextNotBetween(String value1, String value2) {
            addCriterion("t_context not between", value1, value2, "tContext");
            return (Criteria) this;
        }

        public Criteria andTTimeIsNull() {
            addCriterion("t_time is null");
            return (Criteria) this;
        }

        public Criteria andTTimeIsNotNull() {
            addCriterion("t_time is not null");
            return (Criteria) this;
        }

        public Criteria andTTimeEqualTo(Date value) {
            addCriterion("t_time =", value, "tTime");
            return (Criteria) this;
        }

        public Criteria andTTimeNotEqualTo(Date value) {
            addCriterion("t_time <>", value, "tTime");
            return (Criteria) this;
        }

        public Criteria andTTimeGreaterThan(Date value) {
            addCriterion("t_time >", value, "tTime");
            return (Criteria) this;
        }

        public Criteria andTTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("t_time >=", value, "tTime");
            return (Criteria) this;
        }

        public Criteria andTTimeLessThan(Date value) {
            addCriterion("t_time <", value, "tTime");
            return (Criteria) this;
        }

        public Criteria andTTimeLessThanOrEqualTo(Date value) {
            addCriterion("t_time <=", value, "tTime");
            return (Criteria) this;
        }

        public Criteria andTTimeIn(List<Date> values) {
            addCriterion("t_time in", values, "tTime");
            return (Criteria) this;
        }

        public Criteria andTTimeNotIn(List<Date> values) {
            addCriterion("t_time not in", values, "tTime");
            return (Criteria) this;
        }

        public Criteria andTTimeBetween(Date value1, Date value2) {
            addCriterion("t_time between", value1, value2, "tTime");
            return (Criteria) this;
        }

        public Criteria andTTimeNotBetween(Date value1, Date value2) {
            addCriterion("t_time not between", value1, value2, "tTime");
            return (Criteria) this;
        }

        public Criteria andTYueduIsNull() {
            addCriterion("t_yuedu is null");
            return (Criteria) this;
        }

        public Criteria andTYueduIsNotNull() {
            addCriterion("t_yuedu is not null");
            return (Criteria) this;
        }

        public Criteria andTYueduEqualTo(Integer value) {
            addCriterion("t_yuedu =", value, "tYuedu");
            return (Criteria) this;
        }

        public Criteria andTYueduNotEqualTo(Integer value) {
            addCriterion("t_yuedu <>", value, "tYuedu");
            return (Criteria) this;
        }

        public Criteria andTYueduGreaterThan(Integer value) {
            addCriterion("t_yuedu >", value, "tYuedu");
            return (Criteria) this;
        }

        public Criteria andTYueduGreaterThanOrEqualTo(Integer value) {
            addCriterion("t_yuedu >=", value, "tYuedu");
            return (Criteria) this;
        }

        public Criteria andTYueduLessThan(Integer value) {
            addCriterion("t_yuedu <", value, "tYuedu");
            return (Criteria) this;
        }

        public Criteria andTYueduLessThanOrEqualTo(Integer value) {
            addCriterion("t_yuedu <=", value, "tYuedu");
            return (Criteria) this;
        }

        public Criteria andTYueduIn(List<Integer> values) {
            addCriterion("t_yuedu in", values, "tYuedu");
            return (Criteria) this;
        }

        public Criteria andTYueduNotIn(List<Integer> values) {
            addCriterion("t_yuedu not in", values, "tYuedu");
            return (Criteria) this;
        }

        public Criteria andTYueduBetween(Integer value1, Integer value2) {
            addCriterion("t_yuedu between", value1, value2, "tYuedu");
            return (Criteria) this;
        }

        public Criteria andTYueduNotBetween(Integer value1, Integer value2) {
            addCriterion("t_yuedu not between", value1, value2, "tYuedu");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}